package part2;

import java.util.Arrays;

public class Main {
    public static void main(String[] args) {
        Cat[] a = {new Cat(3, 2), new Cat(5, 5), new Cat(1, 1)};
        Sorter<Cat> sorter = new Sorter<>();
        sorter.sort(a, new CatComparator());
        System.out.println(Arrays.toString(a));
        sorter.sort(a, (o1, o2)->{
            return Integer.compare(o2.height, o1.height);
        });
        System.out.println(Arrays.toString(a));
    }
}
